package com.mcj.quartz.vo.requestvo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author : maichaojiu
 * @Descirption :
 * @date : 2018/4/8
 */
@ApiModel
public class MyQuartzJobRequestVO implements Serializable {

    @ApiModelProperty(value = "id")
    @NotNull(message = "id不能为空")
    private Integer id;

    @ApiModelProperty(value = "定时任务名称")
    @NotNull(message = "定时任务名称不能为空")
    private String jobName;

    @ApiModelProperty(value = "定时任务分组")
    @NotNull(message = "定时任务分组不能为空")
    private String jobGroup;

    @ApiModelProperty(value = "定时任务cron表达式")
    @NotNull(message = "定时任务cron表达式不能为空")
    private String cron;

    @ApiModelProperty(value = "定时任务状态，0-停止(默认)，1-启动")
    @NotNull(message = "定时任务状态不能为空")
    private Integer status;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getJobGroup() {
        return jobGroup;
    }

    public void setJobGroup(String jobGroup) {
        this.jobGroup = jobGroup;
    }

    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "MyQuartzJobRequestVO{" +
                "id='" + id + '\'' +
                ", jobName='" + jobName + '\'' +
                ", jobGroup='" + jobGroup + '\'' +
                ", cron='" + cron + '\'' +
                ", status=" + status +
                '}';
    }
}
